package user

import "crmeb-common/global"

// UserExperienceRecord 用户经验记录表
type UserExperienceRecord struct {
	global.BaseModel
	Uid int32 `json:"uid" gorm:"column=uid;comment:用户uid"`

	LinkId string `json:"linkId" gorm:"column=link_id;comment:关联id-orderNo,(sign,system默认为0）"`

	LinkType string `json:"linkType" gorm:"column=link_type;comment:关联类型（order,sign,system）"`

	Type int32 `json:"type" gorm:"column=type;comment:类型：1-增加，2-扣减"`

	Title string `json:"title" gorm:"column=title;comment:标题"`

	Experience int32 `json:"experience" gorm:"column=experience;comment:经验"`

	Balance int32 `json:"balance" gorm:"column=balance;comment:剩余"`

	Mark string `json:"mark" gorm:"column=mark;comment:备注"`

	Status int32 `json:"status" gorm:"column=status;comment:状态：1-成功（保留字段）"`
}
